<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body{
            background: #373737;
        }
        .box{
            width: 200px;
            height: 50px;
            background: #fdc91b;
            margin: 100px auto;
            position: relative;
            overflow: hidden;

        }
        span{
            display: inline-block;
            height: 50px;
            width: 100%;
            position: absolute;
            text-align: center;
            line-height: 50px;
            transition: all .5s;
            color: white;
        }
        span:nth-of-type(1){
            width: 100px;
            height: 40px;
            border-radius: 5px;
            background: red;
            position: absolute;
            transform: translateY(-40px) translateX(50px);
            transition: all .2s;
        }
        .box:hover span:nth-of-type(1){
            transform: translateY(5px) translateX(50px);
        }

        span:nth-of-type(2){
            transform: translateY(-100%);
        }
        .box:hover span:nth-of-type(2){
            transform: translateY(0);
        }
        span:nth-of-type(3){
            transform: translateY(0);
        }
        .box:hover span:nth-of-type(3){
            transform: translateY(100%);
        }
    </style>
</head>
<body>
<div class="box">
    <span></span>
    <span>我不干哈啊</span>
    <span>你干哈啊？</span>
</div>
</body>
</html>